<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<!--
   Copyright (C) 2006, 2007  Stephane Alnet

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 3
   of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
   


   For more information: http://carrierclass.net/
-->
    <head>
        <title>CarrierClass.net Management Platform</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  	    <script src="js/jquery.js"></script>
  	    <script src="js/jquery.geturlparam.js"></script>
  	    <script src="js/jquery.cookie.js"></script>
      	<script>
      	jQuery.noConflict();
      	function log(str) { jQuery("#log").append(str); }

      	jQuery(document).ready(function($){
            function get_group() {
                var r1 = $.cookie('.group'); if(r1) return r1;
                var r2 = $.getURLParam('.group');  if(r2) return r2;
                return '0'; // default group
            }
            var the_group = get_group();
            $('link[@rel*=style]').each(function() {
                this.href.replace(/theme\//, 'theme/'+the_group+'/');
            });
            $('#group').each(function(){
                this.value = the_group;
            });
            if($.getURLParam('logout'))
            {
                $('#info').each(function(){
                   this.innerHTML =  'You have been logged out.';                    
                });
                $.cookie('.group','');
                $.cookie('.login','');
                $.cookie('.session','');
            }
            
            $("#icon").fadeTo(10000,0.2);
            $("#icon").fadeTo(10000,1.0);
            
      	});
      	</script>

        <link rel="stylesheet" href="theme/screen.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="theme/print.css" type="text/css" media="print" />
    </head>
    <body>
        <div id="container">
            <div id="header">
            </div>
            <div id="sidebar">
                <img src="img/128x128/network%202.png" class="login" id="icon">
                <form id="login_form" action="cgi/login.pl" method="get" accept-charset="utf-8" enctype="application/x-www-form-urlencoded">
                    <input type="hidden" name=".group" value="" id="group">

                    <label for="login" class="login">Login</label>
                    <input type="text" name=".login_name" value="" id="login" class="login"><br>

                    <label for="password" class="login">Password</label>
                    <input type="password" name=".password" value="" id="password" class="login"><br>

                    <input type="submit" value="Login &rarr;" class="login" id="submit_button">

                </form>
                <div id="log"></div>
                <div id="info"></div>
            </div>
            <div id="welcome">&nbsp;
            </div>
        </div>
  </body>
</html>
